package com.xxx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xxx.mapper.MetricsMapper;
import com.xxx.pojo.Metrics;
import com.xxx.service.MetricsService;
import org.springframework.stereotype.Service;

@Service
public class MetricsServiceImpl extends ServiceImpl<MetricsMapper, Metrics> implements MetricsService {


    public boolean delByWarningId(Integer id){
        int delete = baseMapper.delete(new LambdaQueryWrapper<Metrics>().eq(Metrics::getWarningId, id));

        return delete == 1;
    }

}
